package com.ihr360.commons.request;

import com.ihr360.commons.specification.Ihr360Specification;
import org.springframework.data.jpa.domain.Specification;

import java.io.Serializable;

/**
 * @author david.wei
 * @param <T>
 */
public class Ihr360SearchBody<T> extends AbstractIhr360PageSearchBody<T> implements Serializable {
    private Ihr360Specification<T> specification;
    private boolean noPagination=false;

    public Ihr360SearchBody() {
    }

    public Ihr360SearchBody(Ihr360Specification<T> specification, int page, int size,boolean noPagination, String[] sort) {
        this.specification = specification;
        this.page = page;
        this.size = size;
        this.sort = sort;
        this.noPagination = noPagination;
    }

    public void setSpecification(Ihr360Specification<T> specification) {
        this.specification = specification;
    }

    public Specification<T> getSpecification() {
        return specification;
    }




}